<ion-list class="message-list">
	<div class="money-tip ng-cloak" ng-if="vm.userType==1" ng-cloak>
		<span ng-bind="'温馨提示：'+(topTitle||'详细描述您的病症，更有利于医生判断病情提供咨询。')"></span>
	</div>
	<ion-item class="row" ng-class="{'from':vm.user.id==msg.userId, 'to':vm.user.id!=msg.userId}" ng-repeat="msg in vm.msgs">
		<div class="avatar" ng-if="vm.user.id!=msg.userId">
			<img ng-src="{{vm.avatarImg()}}" alt="">
		</div>
		<div class="msg-box">
			<div class="msg" ng-if="msg.msgType == 0">
				<i class="chat-arrow"></i>
				<div class="content" ng-bind="msg.content"></div>
			</div>
			<div class="msg pic" ng-if="msg.msgType == 1">
				<i class="chat-arrow"></i>
				<div class="content" ng-init="vm.loadImg(msg)">
					<img ng-src="{{msg.chatImg}}" ng-style="{width: msg.imgWidth+'px',height: msg.imgHeight+'px'}" alt="" ng-click="showImages(msg.content)">
				</div>
			</div>
		</div>
		<div class="avatar" ng-if="vm.user.id==msg.userId">
			<img ng-src="{{vm.avatarImg(msg.userId)}}" alt="">
		</div>
	</ion-item>
	<div class="over-tip ng-cloak" ng-if="call.state==2 && vm.userType==1" ng-cloak>
		<span>当前咨询已结束，咨询费用200元，感谢您的咨询！</span>
	</div>

<image-purview data='vm.ipData'></image-purview>
</ion-list>